﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Web.ASPxGridView;
using System.Data.SqlClient;
using System.Configuration;

public partial class Teacher_ReportCompetitionDetails : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
        if (Session["Teacher"] == null)
        {
            Response.Redirect("~/Default.aspx");
        }
        else
        {
            string user = Session["Teacher"].ToString();
            //Neu Giao vien da login
            if (user[0] == 'T' || user[0] == 't')
            {
            }//Neu Giao vien chua login
            else
            {
                Response.Redirect("~/Default.aspx");
            }
        }
    }
    protected void btnExportPDF_Click(object sender, EventArgs e)
    {
        export.WritePdfToResponse();
    }
    protected void btnExportExcel_Click(object sender, EventArgs e)
    {
        export.WriteXlsToResponse();
    }
}